﻿@using S4Store.Domain
@{
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
@model S4Store.Models.Markting.YDXJBModel
@{
    ViewBag.Title = "YDXJB";
}

<div style="height:100%; overflow:auto">
<div style=" width:100%; height:30px; background:#E5EDEF">
    <div ratio="#25" class="panelBar" style="height: 25px;">
	<ul class="toolBar">
	@if (
                           CurrentUser.Position == S4Store.Domain.Position.SystemManager ||
                           CurrentUser.Position == S4Store.Domain.Position.SaleTutors ||
                           CurrentUser.Position == S4Store.Domain.Position.DealerTutors
                           )
		{
		<li class="historyrecord"><a  backtype="html" href="@Url.Action("AddImproveGuide", "ImproveGuide", new { guidetype = S4Store.Domain.ImproveGuide.ImproveGuideType.Markting.ToInt()  ,referdesc="营销管理>电子传媒营销>移动媒体>媒体资金投入率"})" target="dialog" width="60%"><span class="icon edit">填写改善指导建议</span></a></li>
		}
		<li class=""><a  backtype="html" href="@Url.Action("YDXJBHistory")" target="navtab"  title="移动媒体投入历史数据查询"><span class="icon search">历史数据查询</span></a></li>
	</ul>
</div>
</div>
    <div style="margin:20px; text-align:center">@Model.BarModel.Month.ToString("yyyy年M月")移动媒体投入概况</div>
    <table  class="reporttable"  style="border-collapse:collapse; width:100%">     
    <tr height="198" style="height:148.5pt" class="vtr">
    <th  class="inputedheader"><div>电子媒体名称</div></th>
    <th   ><div>本月获取信息目标</div></th>
    <th   ><div>月度费用(万)</div></th>
    <th   class="calculated"><div>资金投入比</div></th>
    <th   class="calculated"><div>单组资源成本</div></th>
</tr>
@foreach (var report in Model.MediaReports)
{
    <tr height="26" style="height:19.5pt" class="xl65">
            <td>@report.Media.Name</td>
            <td>@report.HQXXMB</td>
            <td>@report.YDFY</td>
            <td>@report.ZJTRB.toInt()%</td>
            <td>@report.DZZYCB.toInt(3)</td>       
    </tr>
}
    <tr height="26" style="height:19.5pt" class="xl65">
            <td>电媒小计</td>
            <td>@Model.GroupReport.HQXXMB</td>
            <td>@Model.GroupReport.YDFY</td>
            <td>@Model.GroupReport.ZJTRB.toInt()%</td>
            <td>@Model.GroupReport.DZZYCB.toInt(3)</td>  
    </tr>

        </table>
    
        
</div>